package com.cq.hd.system.api;

import com.cq.hd.common.response.Result;
import com.cq.hd.system.api.vo.HfRegionVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

@FeignClient(value = "hd-o2o-system-service", contextId = "hf-regions-api")
public interface TbHfRegionsApi {

    // 根据id获取省市列表数据
    @GetMapping("/system/hfRegions/listHfRegionById")
    Result<List<HfRegionVo>> listHfRegionById(@RequestParam(value = "id", defaultValue = "0") Integer id);

    // 根据城市名称获取省市列表数据
    @GetMapping("/system/hfRegions/listHfRegionByCityNames")
    Result<List<HfRegionVo>> listHfRegionByCityNames(@RequestParam("cityNames") Set<String> cityNames);

    // 获取汇付的省市列表所有数据
    @GetMapping("/system/hfRegions/listAllRegion")
    Result<List<HfRegionVo>> listAllRegion();

}
